package com.ocom.common.entity.payconfig;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * xf_recharge_rule
 * @author 
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "xf_recharge_rule")
public class EntityRechargeRule implements Serializable {

    private static final long serialVersionUID = 6168031677070009481L;
    /**
     * 自增id，主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 单位编号
     */
    private Long comId;

    private Integer ruleNo;
    private Integer recharge;
    @JsonProperty("dMode")
    @TableField(value = "d_mode")
    private Integer dMode;
    @JsonProperty("dValue")
    @TableField(value = "d_value")
    private Integer dValue;
    /**
     * 子账户编号
     */
    @TableField(value = "sub_account")
    @JsonProperty("subAccount")
    private Integer subAccount;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+08")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+08")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

}